home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / What's New? / Technical Documentaion / Macintosh Technotes and Q&As / technotes / tn / 1076_MsgTest.hqx / MsgTest / PCMsgTst / MSG.INC < prev    next >
Encoding:
Text File  |  1996-08-26  |  3.0 KB  |  66 lines

  1.  
  2. COMMENT $
  3. *************************************************************************
  4. *                                                                       *
  5. *       File:           MESG.AH                                         *
  6. *       Purpose:        Contains the public structs and definitions     *
  7. *                       to interface to the message system              *
  8. *       Copyright:      CopyRight (c) 1995 by Apple Computer, Inc.      *
  9. *                               All rights reserved.                    *
  10. *                                                                       *
  11. *************************************************************************
  12.  
  13. #    Change History (most recent first):
  14. #
  15. #
  16. COMMEND $
  17.  
  18. ;-----------------------------------------------------------------------------
  19. ;                               Message Data Types
  20. ;-----------------------------------------------------------------------------
  21.  
  22. MsgPBlk         STRUCT
  23. link                    DWORD   ?       ; Link to next Queue element
  24. msgCmd                  WORD    ?       ; The message command or type
  25. msgParam1               DWORD   ?       ; Param 1
  26. msgParam2               DWORD   ?       ; Param 2
  27. msgCompletion           DWORD   ?       ; Ptr to the completion routine
  28. msgBuffer               DWORD   ?       ; Ptr to the data buffer
  29. msgReqCount             DWORD   ?       ; Length of the data
  30. msgActCount             DWORD   ?       ; # of bytes actually transfered
  31. msgResult               BYTE    ?       ; The error code after complete or 1
  32. msgFlags                BYTE    ?
  33. msgUserData             DWORD   ?       ; for caller's use
  34. msgVXD                  DWORD   ?       ; Used by VxD
  35. MsgPBlk         ENDS
  36.  
  37. MsgRecElem      STRUCT
  38. Link                    DWORD   ?       ; Ptr to next link
  39. Code                    DWORD   ?       ; Ptr to the Code for this link
  40. cmdBase                 WORD    ?       ; the base message number for this proc
  41. cmdCount                WORD    ?       ; the # of message numbers for this proc
  42. userData                DWORD   ?       ; for caller's use
  43. recVXD                  DWORD   ?       ; Used by VxD
  44. MsgRecElem      ENDS
  45.  
  46. AckInfo            STRUCT
  47. bytesReceived            DWORD    ?        ; Number of bytes recevied by the Mac.
  48. ackReceived                BYTE    ?        ; Was the ack sent?
  49. AckInfo            ENDS
  50.  
  51. ;-----------------------------------------------------------------------------
  52. ;                       PC Message system Interface  
  53. ;-----------------------------------------------------------------------------
  54. MsgCall                 equ     05Fh    ; Interrupt for Message Interface
  55.  
  56. rsIsAvailable           equ     00      ; Index for is available
  57. rsSendMessage           equ     01      ; Index for Send func
  58. rsInstallMsgHandler     equ     02      ; Index for Install Msg Handler func
  59. rsRemoveMsgHandler      equ     03      ; Index for Remove Msg Handler func
  60. rsRegisterMessage       equ     04      ; Index for Register Msg
  61. rsVersionCheck          equ     05      ; Index to get the version numbers
  62.  
  63. CR    EQU    0Dh
  64. LF    EQU    0Ah
  65. ESCAPE    EQU    1Bh
  66.